package com.example.pojo;

import java.util.Date;

import com.example.enums.BallEnum;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;

/**
 * @ClassName: Student
 * @Description: TODO(这里用一句话描述这个类的作用)
 * @author liuwj3
 * @date 2018年11月25日 下午8:49:56
 *
 */
public class Student {
	private String name;

	@JsonIgnore
	private String password;

	private Integer age;

	// 小时：hh代表12小时制度，HH代表24小时制度
	// @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss a", locale = "zh", timezone = "GMT+8")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh", timezone = "GMT+8")
	private Date birthday;

	@JsonInclude(Include.NON_NULL)
	private String des;
	
	private BallEnum ballEnum;

	public BallEnum getBallEnum() {
		return ballEnum;
	}

	public void setBallEnum(BallEnum ballEnum) {
		this.ballEnum = ballEnum;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public Integer getAge() {
		return age;
	}

	public void setAge(Integer age) {
		this.age = age;
	}

	public Date getBirthday() {
		return birthday;
	}

	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}

	public String getDes() {
		return des;
	}

	public void setDes(String des) {
		this.des = des;
	}

	@Override
	public String toString() {
		return "Student [name=" + name + ", password=" + password + ", age=" + age + ", birthday=" + birthday + ", des="
				+ des + ", ballEnum=" + ballEnum + "]";
	}

	/*@Override
	public String toString() {
		return "Student [name=" + name + ", password=" + password + ", age=" + age + ", birthday=" + birthday + ", des="
				+ des + "]";
	}*/
	

}
